//
//  SINABasePickView.h
//  sinashebao
//
//  Created by  androidlongs on 2017/12/22.
//  Copyright © 2017年  androidlongs. All rights reserved.
//

#import <UIKit/UIKit.h>

@class SINABasePickView;

@protocol  BasePickViewDelegate<NSObject>
@optional
- (void)dismissBasePickView:(SINABasePickView *)customPickView;
@end

@interface SINABasePickView : UIView
@property (nonatomic, strong) UIView *contentView;
@property(nonatomic, weak)id <BasePickViewDelegate>delegate;

//选择器
@property (nonatomic, strong)UIPickerView *pickerView;
//取消按钮
@property (nonatomic, strong)UIButton *cancelButton;
//确定按钮
@property (nonatomic, strong)UIButton *confirmButton;
//显示标题
@property (nonatomic, strong)UILabel *titleLabel;
@property (nonatomic, strong)UILabel *diviLabel;
//选择器每一列的高度
@property (nonatomic, assign)CGFloat pickerViewHeight;

/**
 *  创建视图,初始化视图时初始数据
 */
- (void)initPickView;

/**
 *  确认按钮的点击事件
 */
- (void)clickConfirmButton;


/**
 *  点击取消按钮
 */
- (void) clickCancelButton;

/**
 *  pickerView的显示
 */
- (void)show;

/**
 *  移除pickerView
 */
- (void)disMiss;

@end
